package nimy.info.android.dinnertime.connectivity;

import java.io.InputStream;

public class ResponseObject {

	private int statusCode;
	private InputStream inputStream;

	private ResponseObject(int statusCode, InputStream inputStream) {
		super();
		this.statusCode = statusCode;
		this.inputStream = inputStream;
	}

	public static ResponseObject from(int statusCode, InputStream inputStream) {
		return new ResponseObject(statusCode, inputStream);
	}

	public int getStatusCode() {
		return statusCode;
	}

	public void setStatusCode(int statusCode) {
		this.statusCode = statusCode;
	}

	public InputStream getInputStream() {
		return inputStream;
	}

	public void setInputStream(InputStream inputStream) {
		this.inputStream = inputStream;
	}

	@Override
	public String toString() {
		return "ResponseObject [statusCode=" + statusCode + ", inputStream="
				+ inputStream + "]";
	}

}
